package org.example.order.feign;

import org.example.order.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @author tds
 * @version 1.0.0
 * @Company
 * @ClassName StockFeign
 * @Description
 *      库存feign接口
 *      @FeignClient注解name对应服务名，path对应controller的@RequestMapping，contextId是feign的bean名称，如果同一个服务中，要拆分
 *  成多个feign接口，那么需要设置不同的contextId。
 * @Date 2023-04-17 20:29
 */
@FeignClient(
        name = "stock",
        path = "/stock",
//        configuration = FeignConfig.class,
        contextId = "stockFeign"
)
public interface StockFeign {

    @RequestMapping("/deduct")
    String deduct();
}
